
package mc747.portal.logicas;

import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mc747.portal.servlet.Logica;
import mc747.servicos.estoque.Estoque;
import mc747.servicos.estoque.Produto;
import DefaultNamespace.LogisticaEntrega;
import DefaultNamespace.LogisticaEntregaServiceLocator;

public class ConsultaEntrega implements Logica {

	public void executa(HttpServletRequest req, HttpServletResponse res)
			throws Exception {

		int protocolo = Integer.parseInt(req.getParameter("protocolo"));
		LogisticaEntrega log = new LogisticaEntregaServiceLocator()
		.getLogisticaEntrega();
		String status = log.verificaSituacaoEntrega(protocolo);
	
		req.setAttribute("status", status);
		RequestDispatcher rd = req.getRequestDispatcher(req.getParameter("fwd"));
		rd.forward(req, res);
	}

}
